@import "./reset";
@import "./bootstrap";
@import "./common";


body {
    // 页头
    header {
        position: relative;
        width: 100%;
        margin: 0;
        .banner {
            position: absolute;
            @media (min-width: 1200px) {
                height: 100vh;
                overflow: hidden;
            }
            video {
                width: 100%;
                display: block;
            }
            .mask {
                width: 100%;
                height: 100%;
                position: absolute;
                top: 0px;
                left: 0;
                background-color: black;
                opacity: 0.5;
            }
        }
        // 导航栏
        nav {
            width: 100%;
            position: absolute;
            padding-bottom: 12px;
            // 移动端下缩小底内边距
            @media (max-width: 767px) {
                padding-bottom: 8px;
            }
            // 鼠标移入移出交互
            &:hover {
                background-color: #fff;
                .nav-top {
                    .menu {
                        a {
                            color: black;
                        }
                    }
                    .logo {
                        a {
                            background-image: url(../image/logo-1.png);
                        }
                    }
                    .rightBar {
                        a {
                            color: black;
                        }
                    }
                }
            }
            .nav-top {
                width: 100%;
                display: flex;
                justify-content: space-between;
                // 菜单
                .menu {
                    width: 10%;
                    // 在中屏下固定宽度
                    @media (max-width: 1119px) {
                        width: 120px;
                    }
                    // 移动端下响应宽度
                    @media (max-width: 767px) {
                        width: 10%;
                    }
                    a {
                        width: 100%;
                        height: 80px;
                        display: inline-block;
                        color: #fff;
                        text-decoration: none;
                        display: flex;
                        justify-content: flex-end;
                        align-items: flex-end;
                        &:hover {
                            color: #026139;
                        }
                        // 移动端下缩小高度
                        @media (max-width: 767px) {
                            height: 60px;
                        }
                        .icon-caidan {
                            font-size: 30px;
                            line-height: 18px;
                            margin-right: 5px;
                        }
                        span:last-of-type {
                            font-size: 18px;
                            line-height: 18px;
                            // 在移动端下隐藏文字
                            @media (max-width: 767px) {
                                display: none;
                            }
                        }
                    }
                }
                // 品牌
                .logo {
                    width: 100px;
                    height: 80px;
                    line-height: 80px;
                    text-align: center;
                    position: absolute;
                    left: 50%;
                    transform: translateX(-50%);
                    z-index: 2;
                    // 移动端下缩小宽高度
                    @media (max-width: 767px) {
                        width: 70px;
                        height: 60px;
                        line-height: 60px;
                    }
                    a {
                        width: 90%;
                        height: 50px;
                        background: url(../image/logo-2.png) no-repeat;
                        background-size: contain;
                        display: inline-block;
                        vertical-align: bottom;
                        // 移动端下缩小高度
                        @media (max-width: 767px) {
                            height: 40px;
                            background-size: contain;
                        }
                    }
                }
                // 右边栏
                .rightBar {
                    width: 22%;
                    height: 80px;
                    display: flex;
                    align-items: flex-end;
                    // 在中屏下固定宽度
                    @media (max-width: 1119px) {
                        width: 265px;
                    }
                    // 在移动端下响应宽度
                    @media (max-width: 767px) {
                        width: 20%;
                        height: 60px;
                    }
                    a {
                        display: inline-block;
                        color: #fff;
                        text-decoration: none;
                        &:hover {
                            color: #026139;
                        }
                        span:first-of-type {
                            font-size: 16px;
                            line-height: 16px;
                            margin-left: 30px;
                            // 在移动端下缩小外边距
                            @media (max-width: 600px) {
                                margin-left: 15px;
                            }
                        }
                        span:last-of-type {
                            font-size: 16px;
                            line-height: 16px;
                            // 在移动端下隐藏
                            @media (max-width: 767px) {
                                display: none;
                            }
                        }
                    }
                }
            }
        }
    }
    section {
        // height: 600px;
        // background-color: green;
    }
}
